﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmployeeCashAdvance.ascx.cs" Inherits="Legazpi.Payroll.Web.Usercontrols.EmployeeCashAdvance" %>
            <asp:Repeater ID="repeater" runat="server" onitemdatabound="repeater_ItemDataBound">
                <HeaderTemplate>
                    
                    <table id="CashAdvbl" cellpadding="1" cellspacing="1" 
                        border="0" class="display">
                      <thead>
                        <tr>                                                                                  
                            <th align="center">Date</th>
                            <th align="center">Debit</th>
                            <th align="center">Credit</th>
                            <th align="center">Running Bal.</th>                                                        
                        </tr>
                      </thead>
                    <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>                                                         
                      <td><asp:Literal ID="literalDateAdded" runat="server"></asp:Literal></td>
                      <td><%# ((double)Eval("Debit")).ToString("N")%></td>
                      <td><%# ((double)Eval("Credit")).ToString("N")%></td>
                      <td align="center"><asp:Literal ID="literalRunningBal" runat="server"></asp:Literal></td>                                            
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                            <tr>                                                    
                              <td align="right"><strong>Total:</strong></td>
                              <td><%=TotalDebit.ToString("N")%></td>
                              <td><%=TotalCredit.ToString("N")%></td>
                              <td align="center"><strong><%=TotalRunningBalance.ToString("N")%></strong></td>                                                                                  
                            </tr>
                        </tbody>
                    </table>
                </FooterTemplate>
            </asp:Repeater> 